package com.hm.hehe;

import java.util.Calendar;
import java.util.Date;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Component
@Configuration
@ComponentScan
public class MyConfig {
	
	@Bean
	public Date date() {
	//	Date date = new Date();
		Calendar cal=Calendar.getInstance();
		cal.set(Calendar.YEAR,1949);
		cal.set(Calendar.MONTH,9);
		cal.set(Calendar.DATE,1);
		return cal.getTime();
	}
	
}
